package com.sj.stone.service;

import com.sj.stone.domain.mysql.AssUserRepository;
import com.sj.stone.domain.mysql.entry.AssUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements AssUserService {
	@Autowired
	private AssUserRepository assUserRepository;


	@Override
	public List<AssUser> getByUsernameAndPwd(String username, String password) {
		return assUserRepository.findByUsernameAndPassword(username,password);
	}

	@Override
	public AssUser getByUsername(String username) {
		return assUserRepository.findByUsername(username);
	}


}
